<template>
	<view v-if="info" class="activateMembership">
		<view class="header">
			<view class="left">
				<image :src="info.portrait" mode=""></image>
				<view class="info">
					<view class="top">
						{{info.nickName}} <text>({{info.mobile}})</text>
					</view>
					<view class="bot">
						ID：{{info.memberNo}}
					</view>
				</view>
			</view>

			<!-- <view class="tags"  :class="[bgColor]">  黄金VIP
			
			</view> -->
		</view>
		<view class="infoPrev">
			<view class="line">
				<view class="left">
					服务类型
				</view>
				<view class="right">
					{{info.serviceTypeName}}
				</view>
			</view>
			<view class="line">
				<view class="left">
					服务时间
				</view>
				<view class="right">
					{{info.genTime}}
				</view>
			</view>
			<view class="line">
				<view class="left">
					是否已回访
				</view>
				<view class="right">
					{{info.followUpName}}
				</view>
			</view>
			<view v-if="info.description" class="line">
				<view class="left">
					服务内容
				</view>
				<view class="right">
					{{info.description}}
				</view>
			</view>
			<view v-if="info.evaluationName" class="line">
				<view class="left">
					客户评价
				</view>
				<view class="right">
					{{info.evaluationName}}
				</view>
			</view>
			
			<view v-if="info.checkerName" class="line">
				<view class="left">
					审核人
				</view>
				<view class="right">
					{{info.checkerName}}
				</view>
			</view>
			
			<view v-if="info.checkTime" class="line">
				<view class="left">
					审核时间
				</view>
				<view class="right">
					{{info.checkTime}}
				</view>
			</view>
			
			<view v-if="info.note" class="line">
				<view class="left">
					审核备注
				</view>
				<view class="right">
					{{info.note}}
				</view>
			</view>
			
		</view>
		<view v-if="fileList.length" class="photos">
			<view class="tit">
				<view class="left">
					<text>附件</text>
				</view>
			</view>
			<view class="">
				<u-upload :disabled="false" :deletable="false" :width="148" :height="148" :show-progress="false"
					:max-count="fileList.length" :file-list="fileList"></u-upload>
			</view>
		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: 0,
				info: null,
			
				fileList: []

			}
		},
		onLoad(e) {

			this.getDetail(e.id) //获取会员列表

		},
		methods: {
			getDetail(id) {
				this.$u.api
					.serviceRecordDetail({
						id
					})
					.then((res) => {
					
						this.info = res.data
						 
						if (res.data?.fileList?.length) {
							this.fileList = res.data?.fileList?.map(r => {
								return {
									'url': r
								}
							})
						}
						
						
							console.log(this.fileList , 77777);


					});
			}

		}
	}
</script>

<style scoped lang="scss">
	.activateMembership {
		padding: 0 40rpx;

		

		

		.intro {

			padding: 6rpx 16rpx 0;

			background: #F1F1F1;
			border-radius: 10rpx 10rpx 10rpx 10rpx;

			&.intro1 {
				height: 176rpx;
				// margin-top: 24rpx;
			}

			/deep/ .u-input__input {
				text-align: left !important;
				// margin-right: 24rpx;
			}

			/deep/ textarea,
			uni-textarea {
				height: 60px;
			}

			.max {
				font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
				font-weight: 400;
				font-size: 24rpx;
				color: rgba(15, 20, 23, 0.4);
				line-height: 28rpx;
				text-align: right;
			}
		}

		.photos {
			background: #FFFFFF;
			padding: 24rpx 0 0;
			border-radius: 16rpx 16rpx 16rpx 16rpx;
			// margin-bottom: 24rpx;

			.open {
				margin-top: 16rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
				font-weight: 400;
				font-size: 28rpx;
				color: #0F1417;
				line-height: 33rpx;
			}

			.tit {
				margin-bottom: 18rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.left {
					display: flex;
					align-items: center;

					>text:nth-child(1) {
						font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
						font-weight: 500;
						font-size: 28rpx;
						color: #0F1417;
						line-height: 40rpx;
					}

					>text:nth-child(2) {
						font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
						font-weight: 400;
						font-size: 24rpx;
						color: rgba(15, 20, 23, 0.4);
						line-height: 28rpx;
					}
				}

				.right {
					font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
					font-weight: 400;
					font-size: 24rpx;
					color: rgba(15, 20, 23, 0.4);
					line-height: 28rpx;
				}
			}
		}

		.title {
			padding: 24rpx 0 16rpx;
		}

		.infoPrev {
			padding: 8rpx 0;
			border-bottom: 2rpx solid #F5F5F5;

			.line {
				margin-bottom: 16rpx;
				display: flex;
				align-items: center;

				// justify-content: space-between;
				.left {
					font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
					font-weight: 400;
					font-size: 28rpx;
					color: #0F1417;
					line-height: 33rpx;
					margin-right: 66rpx;
					min-width: 140rpx;
				}

				.right {
					flex: 1;
					font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
					font-weight: 400;
					font-size: 28rpx;
					color: rgba(15, 20, 23, 0.6);
					line-height: 33rpx;

					.status {
						font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
						font-weight: 500;
						font-size: 28rpx;
						color: #6F7274;
						line-height: 33rpx;

						&.doing {
							color: #FFA340 !important;
						}

						&.ok {
							color: #1BAB6B !important;
						}
					}
				}
			}
		}

		// border-bottom: 2rpx solid #F5F5F5;

		.header {
			padding-bottom: 24rpx;

			display: flex;
			align-items: center;
			justify-content: space-between;

			.left {
				display: flex;
				align-items: center;

				image {
					width: 93rpx;
					height: 93rpx;
					margin-right: 26rpx;
					border-radius: 50%;
				}

				.info {
					flex: 1;

					.top {
						font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
						font-weight: 400;
						font-size: 28rpx;
						color: #0F1417;
						line-height: 40rpx;
						margin-bottom: 8rpx;
					}

					.bot {
						font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
						font-weight: 400;
						font-size: 24rpx;
						color: rgba(15, 20, 23, 0.6);
					}
				}
			}

			.tags {
				font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
				font-weight: 400;
				font-size: 24rpx;
				color: #0F1417;
				line-height: 20rpx;
				color: #0F1417;
				background: #EDEFF0;
				border-radius: 48rpx 48rpx 48rpx 48rpx;
				padding: 8rpx 16rpx;

				&.base {
					color: #E7EDF4 !important;
					background: #252E3C !important;
				}

				&.golden {
					color: #FFE1CF !important;
					background: #A06D08 !important;
				}

				&.baijin {
					color: #FFE1CF !important;
					background: #4B1C00 !important;
				}

				&.zuanshi {
					color: #D0EAF9 !important;
					background: #3E5980 !important;
				}
			}
		}
	}
</style>
